package io.sage.modules.basics.dao;

import java.util.List;
import java.util.Map;

import io.sage.modules.basics.vo.CascaderVo;
import org.apache.ibatis.annotations.Param;

import io.sage.modules.basics.entity.BGoodsArea;
import io.sage.modules.basics.entity.BGoodsAreaExample;

public interface BGoodsAreaMapper {
    int countByExample(BGoodsAreaExample example);

    int deleteByExample(BGoodsAreaExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(BGoodsArea record);

    int insertSelective(BGoodsArea record);

    List<BGoodsArea> selectByExample(BGoodsAreaExample example);

    BGoodsArea selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BGoodsArea record, @Param("example") BGoodsAreaExample example);

    int updateByExample(@Param("record") BGoodsArea record, @Param("example") BGoodsAreaExample example);

    int updateByPrimaryKeySelective(BGoodsArea record);

    int updateByPrimaryKey(BGoodsArea record);
    
    /**
     * 货区列表
     * @param params
     * @return
     */
    List<BGoodsArea> selectGoodsAreaList(Map<String, Object> params);
    /**
     * 批量删除
     * @param ids
     * @return
     */
	int deleteBatchIds(Integer[] ids);

    List<BGoodsArea> selectIsUse(Integer[] ids);

}